---
import SearchS from "astro-pagefind/components/Search";
import '../styles/components/Search.styl';
---
<SearchS 
  id="search" 
  className="pagefind-ui" 
  uiOptions={{ 
    showImages: false,
    placeholderText: "",
    showEmptyResults: true,
    showSubResults: true,
    resetStyles: true,
    translations: {
      placeholder: "",
      clear_search: "清除",
      load_more: "加载更多结果",
      search_label: "搜索网站",
      filters_label: "筛选",
      zero_results: "未找到与 [SEARCH_TERM] 相关的结果",
      many_results: "找到 [COUNT] 个与 [SEARCH_TERM] 相关的结果",
      one_result: "找到 1 个与 [SEARCH_TERM] 相关的结果",
      searching: "搜索 [SEARCH_TERM] 中..."
    }
  }}
/>

